import App from './App'
import uView from '@/uni_modules/uview-ui'
// #ifndef VUE3
import Vue from 'vue'
import store from '@/store/index.js'
import requestLoading from '@/components/myLoading/myLoading.vue'
import rules from '@/utils/rules.js'
Vue.prototype.$showLoading=showLoading
Vue.prototype.$hideLoading=hideLoading
Vue.prototype.$rules = rules
function showLoading(){
	store.commit('request_show_loading')
}
function hideLoading(){
	store.commit('request_hhide_loading')
}
Vue.component('request-loading',requestLoading)
Vue.prototype.$store = store
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
Vue.use(uView)
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif